package com.timoon.app;

import org.apache.wicket.Page;
import org.apache.wicket.application.ComponentInstantiationListenerCollection;
import org.apache.wicket.protocol.http.WebApplication;
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;

import com.timoon.page.Page1;
import com.timoon.sample.page.HomePage;

/**
 *<p></p>
 *<p></p>
 *<p>Copyright:Copyright(c)2013.4.1</p>
 *<p>Company:timoon</p>
 *@author 付乐天
 *@version 1.0 */
public class App extends WebApplication {

	@Override
	public Class<? extends Page> getHomePage() {
		// TODO Auto-generated method stub
		//return HomePage.class;
		
		return HomePage.class;
	}
	@Override
	protected void init() {
		// TODO Auto-generated method stub
		super.init();
		//addComponentInstantiationListener();
		ComponentInstantiationListenerCollection listener=getComponentInstantiationListeners();//.add(new SpringComponentInjector(this));
		listener.add(new SpringComponentInjector(this));
	}

}
